<?php

use think\facade\Route;

Route::group('crontab', function () {
    $graft = '\addons\BuilderPlus\driver\Crontab@';
    Route::get('/index', $graft . 'index');
    Route::get('/getList', $graft . 'getList');
    Route::get('/add', $graft . 'add');
    Route::post('/save', $graft . 'save');
    Route::post('/execute', $graft . 'execute');
    Route::get('/record', $graft . 'record');
    Route::get('/export', $graft . 'export');
})->middleware('verify');


Route::group('version', function () {
    $graft = '\addons\BuilderPlus\driver\Version@';
    Route::get('/check', $graft . 'check');
    Route::get('/update', $graft . 'update');
})->middleware('verify');

